#ifndef EVALBLEEDTHROUGH_HPP
#define EVALBLEEDTHROUGH_HPP

#include "GlobalMesureTemplateMethod.hpp"
#include "EvalBleedThroughParameters.hpp"

class EvalBleedThrough : public GlobalMesureTemplateMethod
{
public:
    EvalBleedThrough(){}
    EvalBleedThrough(const girl::tools::Image &verso)
    {
        BleedThroughParameters * p = new BleedThroughParameters;
        p->params["verso"]->setParam(&verso);
        setParameters(p);
    }

    virtual MeasureParameters * creatParameters()
    {
        return new BleedThroughParameters;
    }

    girl::tools::Image getVerso()
    {
        BleedThroughParameters *params = dynamic_cast<BleedThroughParameters * >(_params);
        return *(params->getParamByName<girl::tools::Image>("verso"));
    }
};

#endif // EVALBLEEDTHROUGH_HPP
